<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>window对象属性和方法</title>
		<iframe src="setInterval.html"></iframe>
		<!--<iframe src="setTimeout.html"></iframe>-->
		
		
	</head>
	<body>
		<input type="button" onclick="fun1()" value="点我"/>
	</body>
	<script type="text/javascript">
			//window.open("window对象.html");
			console.log(window.closed);
			console.log(window.innerWidth);
			console.log(window.innerHeight);
			console.log(window.length);
			function fun1(){
				var myWindow=window.open('','MsgWindow','width=200,height=100');
				myWindow.document.write("<p>窗口名称为: " + myWindow.name + "</p>");
			}
			console.log(window.name);
			
			
			
		</script>
</html>
